package com.halflife.comeElectricity.orderMng.reFund;

import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface ReFundOrderRepository {

    int deleteByPrimaryKey(Integer id);

    int insert(ReFundOrder reFundOrder);

    int insertSelective(ReFundOrder reFundOrder);

    ReFundOrder selectByPrimaryKey(Integer id);

    ReFundOrder selectByTransactionId(Integer id);

    int updateByPrimaryKeySelective(ReFundOrder reFundOrder);

    int updateByPrimaryKey(ReFundOrder reFundOrder);

    /**
     * 查询所有退款订单
     * @param
     * @return
     */
    List<ReFundOrder> selectReFundOrderByPage(HashMap<String, Object> param);

    /**
     *  查询订单数量
     * @param
     * @return
     */
    int selectReFundOrderCountByPage(HashMap<String, Object> param);
}
